package com.xpp.mvc.handler;

import com.xpp.mapper.Admin;
import com.xpp.service.api.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;

import java.util.List;

@Controller
public class TestHandler {
    @Autowired
    private AdminService adminService;
    public String testSsm(ModelMap modelMap){
        List<Admin> adminList=adminService.getAll();
        modelMap.addAttribute("adminList",adminList);
        return "target";
    }
}
